package com.cq.hd.member.po;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商家经纪人关联表
 * </p>
 *
 * @author mYunYu
 * @since 2023-11-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_business_agent")
@ApiModel(value="TbBusinessAgentPo对象", description="商家经纪人关联表")
public class TbBusinessAgentPo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(value = "商家id")
    @TableField("business_id")
    private Long businessId;

    @ApiModelProperty(value = "上级经纪人id")
    @TableField("agent_id")
    private Long agentId;

    @ApiModelProperty(value = "总分销订单数")
    @TableField("total_order_count")
    private Integer totalOrderCount;

    @ApiModelProperty(value = "总分销订单金额")
    @TableField("total_order_amt")
    private BigDecimal totalOrderAmt;

    @ApiModelProperty(value = "关联策划人数（作废）")
    @TableField("relation_business_count")
    private Integer relationBusinessCount;

    @ApiModelProperty(value = "累计结算分销佣金")
    @TableField("total_settle_commission")
    private BigDecimal totalSettleCommission;

    @ApiModelProperty(value = "累计分销总佣金")
    @TableField("total_commission")
    private BigDecimal totalCommission;

    @ApiModelProperty(value = "累计提现总佣金")
    @TableField("total_withdrawal_commission")
    private BigDecimal totalWithdrawalCommission;

    @ApiModelProperty(value = "分组id")
    @TableField("group_id")
    private Long groupId;

    @ApiModelProperty(value = "专属佣金比例")
    @TableField("commission_rate")
    private BigDecimal commissionRate;



    @ApiModelProperty(value = "持卡人姓名")
    @TableField("card_name")
    private String cardName;

    @ApiModelProperty(value = "银行卡号")
    @TableField("card_no")
    private String cardNo;

    @ApiModelProperty(value = "银行所在地省份code")
    @TableField("bank_province_code")
    private String bankProvinceCode;

    @ApiModelProperty(value = "银行所在地省份名称")
    @TableField("bank_province_name")
    private String bankProvinceName;

    @ApiModelProperty(value = "银行所在地市code")
    @TableField("bank_city_code")
    private String bankCityCode;

    @ApiModelProperty(value = "银行所在地市名称")
    @TableField("bank_city_name")
    private String bankCityName;

    @ApiModelProperty(value = "状态(1-待入驻，2-入驻失败，3-待签约，4-签约成功，5-签约失败)")
    @TableField("state")
    private Integer state;


    @ApiModelProperty(value = "创建者")
    @TableField("create_by")
    private Integer createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新者")
    @TableField("update_by")
    private Integer updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "删除状态:0-正常，1-已删除")
    @TableField("del_state")
    private Integer delState;
}
